Do not do anything if the event's window is not the bin window.
authorFederico Mena Quintero <federico@nuclecu.unam.mx>
Thu, 20 Aug 1998 16:55:16 +0000 (16:55 +0000)
committerArturo Espinosa <unammx@src.gnome.org>
Thu, 20 Aug 1998 16:55:16 +0000 (16:55 +0000)
1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
anything if the event's window is not the bin window.
(gtk_handle_box_motion): Likewise.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkhandlebox.c

index 1e109dbbc3366b6e052afaa60ca6357171cdcbf0..3e346e70b8e2fa0852aea17612c854e6f257ecd9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+       anything if the event's window is not the bin window.
+       (gtk_handle_box_motion): Likewise.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gtk/testgtk.c (create_color_preview): pushed the colormap and
index 1e109dbbc3366b6e052afaa60ca6357171cdcbf0..3e346e70b8e2fa0852aea17612c854e6f257ecd9 100644 (file)
@@ -1,3 +1,9 @@
+1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+       anything if the event's window is not the bin window.
+       (gtk_handle_box_motion): Likewise.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gtk/testgtk.c (create_color_preview): pushed the colormap and
index 1e109dbbc3366b6e052afaa60ca6357171cdcbf0..3e346e70b8e2fa0852aea17612c854e6f257ecd9 100644 (file)
@@ -1,3 +1,9 @@
+1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+       anything if the event's window is not the bin window.
+       (gtk_handle_box_motion): Likewise.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gtk/testgtk.c (create_color_preview): pushed the colormap and
index 1e109dbbc3366b6e052afaa60ca6357171cdcbf0..3e346e70b8e2fa0852aea17612c854e6f257ecd9 100644 (file)
@@ -1,3 +1,9 @@
+1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+       anything if the event's window is not the bin window.
+       (gtk_handle_box_motion): Likewise.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gtk/testgtk.c (create_color_preview): pushed the colormap and
index 1e109dbbc3366b6e052afaa60ca6357171cdcbf0..3e346e70b8e2fa0852aea17612c854e6f257ecd9 100644 (file)
@@ -1,3 +1,9 @@
+1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+       anything if the event's window is not the bin window.
+       (gtk_handle_box_motion): Likewise.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gtk/testgtk.c (create_color_preview): pushed the colormap and
index 1e109dbbc3366b6e052afaa60ca6357171cdcbf0..3e346e70b8e2fa0852aea17612c854e6f257ecd9 100644 (file)
@@ -1,3 +1,9 @@
+1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+       anything if the event's window is not the bin window.
+       (gtk_handle_box_motion): Likewise.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gtk/testgtk.c (create_color_preview): pushed the colormap and
index 1e109dbbc3366b6e052afaa60ca6357171cdcbf0..3e346e70b8e2fa0852aea17612c854e6f257ecd9 100644 (file)
@@ -1,3 +1,9 @@
+1998-08-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+       anything if the event's window is not the bin window.
+       (gtk_handle_box_motion): Likewise.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gtk/testgtk.c (create_color_preview): pushed the colormap and
index 6dd34f117d592dbcc9db2e67657ad6032ce91d70..18f0e32f3de15f946a15a6b696be7c1e06f976bd 100644 (file)
@@ -793,6 +793,9 @@ gtk_handle_box_button_changed (GtkWidget      *widget,
 
   hb = GTK_HANDLE_BOX (widget);
 
+  if (event->window != hb->bin_window)
+    return FALSE;
+
   event_handled = FALSE;
   if (event->button == 1 &&
       event->type == GDK_BUTTON_PRESS)
@@ -878,6 +881,9 @@ gtk_handle_box_motion (GtkWidget      *widget,
   if (!hb->in_drag)
     return FALSE;
 
+  if (event->window != hb->bin_window)
+    return FALSE;
+
   ox = 0;
   oy = 0;
   gdk_window_get_origin (hb->float_window, &ox, &oy);